import { Service } from "@/utils/Service";

// 登录
export function login(data) {
  return Service({
    url: '/user/login/',
    data: data
  });
}

// 退出登录
export function loginout(data) {
  return Service({
    url: "/user/loginout/",
    data: data
  });
}

// 注册
export function register(data) {
  return Service({
    url: '/user/reg/',
    data: data
  })
}

// 忘记密码
export function forgetpwd(data) {
  return Service({
    url: '/user/forget/',
    data: data
  })
}

// 发送邮件
export function sendMail(data) {
  return Service({
    url: '/user/sendmail/',
    data: data
  })
}

// 重置密码
export function resetPwd(data) {
  return Service({
    url: '/user/resetpwd/',
    data: data
  })
}

// 历史记录查询
export function HistoryQuery(data){
  return Service({
    url: '/his/query/',
    data: data
  })
}